package dao;

import org.apache.ibatis.annotations.Param;

import java.util.List;

interface ExampleBaseMapper<MODEL, ID, EXAMPLE> extends BaseMapper<MODEL, ID> {

    long countByExample(EXAMPLE example);

    int deleteByExample(EXAMPLE example);

    int updateByExampleSelective(@Param("record") MODEL record, @Param("example") EXAMPLE example);

    int updateByExample(@Param("record") MODEL record, @Param("example") EXAMPLE example);

    List<MODEL> selectByExample(EXAMPLE example);

}
